package com.cf.subject.application.convert;

import com.cf.subject.application.dto.SubjectCategoryDto;
import com.cf.subject.domain.entity.SubjectCategoryBo;
import com.cf.subject.infra.basic.entity.SubjectCategory;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: 乘风破浪
 * @Date: 2024/3/3 10:48
 * @Description:
 **/
@Mapper
public interface SubjectCategoryDtoConverter {
    SubjectCategoryDtoConverter INSTANCE=Mappers.getMapper(SubjectCategoryDtoConverter.class);

    SubjectCategoryBo convertBotoCategory(SubjectCategoryDto categoryDto);

    List<SubjectCategoryDto> convertBotoCategory(List<SubjectCategoryBo> categoryBoList);

    SubjectCategoryBo subjectCategoryDtoConverter(SubjectCategoryDto subjectCategoryDto);
}
